﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using CoolCode.Controls;

namespace CoolCodePFM.UI
{
    public partial class Login : UserControl
    {
        public Login()
        {
            InitializeComponent();
           //txtUserID.LostFocus += new RoutedEventHandler(txtUserID_LostFocus);
           // btnSubmit.Click += new RoutedEventHandler(btnSubmit_Click);
            //_client.CheckAccessCompleted += new EventHandler<CheckAccessCompletedEventArgs>(_client_CheckAccessCompleted);
           
        }

        //void _client_CheckAccessCompleted(object sender, CheckAccessCompletedEventArgs e)
        //{
        //    Window.HideLoading();
        //    if (e.Result!=null)
        //    {
        //        //go to manager page
        //        Window.Alert("Login Success");
        //    }
        //    else
        //        lblErrMsg.Text = "*Wrong user ID or password!";
        //}
 

        void txtUserID_LostFocus(object sender, RoutedEventArgs e)
        {
            //if (txtUserID.Text == string.Empty)
            //    lblErrUserID.Text = "*User ID request!";
        }

        void btnSubmit_Click(object sender, RoutedEventArgs e)
        {
            Window.ShowLoading("");
            //_client.CheckAccessAsync ( txtUserID.Text, txtPwd.Password );
        }
 
    }
}
